package cn.frh.product.domain;

import cn.frh.basic.domain.BaseDomain;
import cn.frh.org.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BaseDomain {
    private String name;//服务名称
    private String resources;//存放fastdfs地址，多个资源使用，分割
    private BigDecimal saleprice;//售价
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime = new Date();//下架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime = new Date();//上架时间
    private Integer state = 0;//状态：0下架 1上架
    private BigDecimal costprice;//成本价
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();//创建时间
    private Integer salecount = 0;//销售数量


    private String intro;
    private String orderNotice;
    private ProductDetail detail = new ProductDetail();
    private Long shop_id;
    private Shop shop;
}
